import request from '@/utils/request'

// 查询newschedule列表
export function listNewschedule(query) {
  return request({
    url: '/his/newschedule/list',
    method: 'get',
    params: query
  })
}

// 查询newschedule详细
export function getNewschedule(schedId) {
  return request({
    url: '/his/newschedule/' + schedId,
    method: 'get'
  })
}

// 新增newschedule
export function addNewschedule(data) {
  return request({
    url: '/his/newschedule',
    method: 'post',
    data: data
  })
}

// 修改newschedule
export function updateNewschedule(data) {
  return request({
    url: '/his/newschedule',
    method: 'put',
    data: data
  })
}

// 删除newschedule
export function delNewschedule(schedId) {
  return request({
    url: '/his/newschedule/' + schedId,
    method: 'delete'
  })
}
